package com.easytopit.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easytopit.demo.dao.UserDao;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;
	
	@Override
	public String checkName(String name) {
		return userDao.checkName(name);
	}

	@Override
	public void reg(String name, String passwd, String phone) {
		userDao.insert(name, passwd, phone);
	}
}